package com.example.mailbackend.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 购物车信息表(ShoppingCart)表实体类
 *
 * @author makejava
 * @since 2024-01-17 19:23:06
 */
@SuppressWarnings("serial")
public class ShoppingCart extends Model<ShoppingCart> {
    //id
    private Integer id;
    //用户id
    private Integer userId;
    //商品id
    private Integer goodsId;
    //购物车内该商品数量
    private Integer amount;
    //图片base64编码
    private String imgUrl;
    //商品名称
    private String goodsName;
    //商品单价
    private Double price;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

}

